package com.example.demo_1106.service;

import com.example.demo_1106.entity.Userinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author kongke
* @description 针对表【userinfo(用户表)】的数据库操作Service
* @createDate 2023-07-23 10:09:06
*/
public interface UserinfoService extends IService<Userinfo> {


    /**
     * 查询用户
     *
     * @param account 账户
     * @return {@link List}<{@link Userinfo}>
     */
    List<Userinfo> getUser(String account);

    /**
     * 删除用户
     *
     * @param account 账户
     * @return boolean
     */
    boolean delUser(String account);

    /**
     * 添加用户
     *
     * @param user 用户
     * @return boolean
     */
    boolean addUser(Userinfo user);

    /**
     * 更新用户
     *
     * @param user 用户
     * @return boolean
     */
    boolean updateUser( Userinfo user);
}
